<template>
  <div class="tabbar d-flex">
    <router-link :to="item.path" v-for="(item, index) in tabbarList" :key="index" class="flex-1">
      <section class="d-flex column">
        <i :class="['iconfont', item.icon]"></i>
        <span>{{ item.name }}</span>
      </section>
    </router-link>
  </div>
</template>
<script>
export default {
  data () {
    return {
      tabbarList: [
        {
          name: '首页',
          icon: 'icon-iconfontzhizuobiaozhun023101',
          path: '/'
        },
        {
          name: '运势',
          icon: 'icon-xingxing',
          path: '/calendar'
        },
        {
          name: '热点',
          icon: 'icon-redianshijian',
          path: '/info-flow'
        }
      ]
    }
  },
  methods: {

  }
}
</script>
<style lang="scss" scoped>
.tabbar {
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  section {
    text-align: center;
    color: #000;
    i {
      font-size: 18px;
    }
    span {
      font-size: 16px;
      margin-top: 5px;
    }
  }
  .router-link-exact-active {
    span, i {
      color: #ba6749;
    }
  }
}
</style>
